<?php


register_sidebar(array(
	'before_widget' => '<li id="%1$s" class="widget %2$s">',
	'after_widget' => '</li>',
	'before_title' => '<h3>',
	'after_title' => '</h3>',
));


function oss_widget_about($args){
	extract($args);
	print $before_widget;
	print $before_title;
	print '<a href="/about/">About the Project</a>';
	print $after_title;
	?>
	<ul>
		<li class='icon delicious'><strong><a href="/directory/" title="Find resources that promote Open Scriptures on the Web">Directory</a></strong></li>
		<li class='icon feed'><a rel="feed" type="application/rss+xml" href="http://feeds2.feedburner.com/open-scriptures" title="Subscribe to the Open Scriptures blog">Blog Feed</a></li>
		<li class='icon google-groups'><a href="http://groups.google.com/group/open-scriptures" title="Join in the discussion at the Open Scriptures Google Group">Discussion Group</a></li>
		<!--<li><a href="http://code.google.com/p/open-scriptures/issues/list">Report Issues</a></li>-->
		<li class='icon github'><a href="http://github.com/openscriptures" title="Check out the Open Scriptures source code on GitHub and fork it!">Source Code</a></li>
		<li class='icon twitter'><a href="http://twitter.com/openscriptures" title="Follow Open Scriptures (openscriptures) on Twitter">Twitter</a></li>
		<li class='icon facebook'><a href="http://facebook.com/openscriptures" title="Friend Open Scriptures on Facebook">Facebook</a></li>
	</ul>
	<?php
	print $after_widget;
}
register_sidebar_widget('OSS: About the Project', 'oss_widget_about');


function oss_widget_prototypes($args){
	extract($args);
	print $before_widget;
	print $before_title;
	print "Prototypes";
	print $after_title;
	?>
		<ul>
			<li><a href="/prototypes/manuscript-comparator/"><strong>Manuscript Comparator</strong> <img src="/wp-content/uploads/manuscript-comparator-unified-view-150x150.png" alt="Manuscript Comparator screenshot" style="display:block" /></a></li>
			<li><a href="/prototypes/reference-parser-test.php">Reference Parser</a></li>
			<li><a href="/prototypes/work-viewer/">Work Viewer</a></li>
		</ul>
	<?php
	print $after_widget;
	
}
register_sidebar_widget('OSS: Prototypes', 'oss_widget_prototypes');